package com.bw.goods.mvvm.adpter;

import android.view.View;
import android.widget.ImageView;

import com.blankj.utilcode.util.LogUtils;
import com.bw.goods.R;
import com.bw.goods.mvvm.model.entity.CategoryEntity;
import com.bw.goods.mvvm.model.entity.CategoryValuesEntity;
import com.bw.mvvm_comom.network.load.LoadImage;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;

import org.jetbrains.annotations.NotNull;

public class CategoryRightAdpter extends BaseQuickAdapter<CategoryValuesEntity.DataBean, BaseViewHolder> {
    public CategoryRightAdpter() {
        super(R.layout.item_category_value);
    }

    @Override
    protected void convert(@NotNull BaseViewHolder baseViewHolder, CategoryValuesEntity.DataBean dataBean) {
        baseViewHolder.setText(R.id.category_value_item_tv,dataBean.category_name);
        ImageView imageView = baseViewHolder.getView(R.id.category_value_item_img);
        LoadImage.loadMatchImg(dataBean.category_icon,imageView);


    }
}
